import sys
import os
from datetime import timedelta

from django.contrib.auth import authenticate

from base_db import Influxdb_info
# from models import InfluxInfo
from orm import regestUserName

sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from django.shortcuts import render, HttpResponse, redirect
from createData import add_db, search_db, delete_db
from config import get_json_data, modify_json_data, get_json_sql, recordsql, updateSqlList
from runclish import runclish
from modsim import change_modbus_value
from django.http import JsonResponse
from func import *
from influxdbHome.models import Department, UserInfo,InfluxInfo



def cicd(req):
    return render(req, 'login.html')
